package cn.cdutetc.foxwatch.pojo.message;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.File;
import java.io.Serializable;
import java.util.List;

/**
 * @author 王勇
 * @ClassName： Message
 * @ClassPath： cn.cdutetc.foxwatch.pojo.message.Message
 * @Description：
 * @date 2024/10/5 12:30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "邮箱消息")
public class MessagePojo implements Serializable {

    @Schema(description = "邮件主题")
    private String subject;

    @Schema(description = "接收者：可以有多个接收者，中间用逗号隔开")
    private String recipient;

    @Schema(description = "抄送人：可以有多个抄送人，中间用逗号隔开")
    private String cc;

    @Schema(description = "正文")
    private String text;

    @Schema(description = "附件、图片")
    private List<File> attachments;

}
